package com.huice.seller.controller;

import com.huice.seller.common.result.Result;
import com.huice.seller.pojo.vo.ForwarderSupplierVO;
import com.huice.seller.service.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description TODO
 * @Author 赵凯
 * @Date 2021/7/14 13:04
 **/
@RestController
public class SupplierController {


    @Autowired
    private SupplierService supplierService;


    @GetMapping("/query/wait/push/biz/summary/list")
    public Result<List<ForwarderSupplierVO>> supplierList(@RequestHeader(required = false) String token) {
        List<ForwarderSupplierVO> forwarderSupplierVOS = supplierService.supplierList();
        return Result.ok(forwarderSupplierVOS);
    }


}
